﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;

namespace Xejen.Commands.Models
{
    /// <summary>
    /// 设备报警的请求参数
    /// </summary>
    public class UploadDataWRequest : Request
    {
        /// <summary>
        /// 工序
        /// </summary>
        [JsonProperty("operation_no")]
        [JsonPropertyName("operation_no")]
        public string OperationNo { get; set; }
        /// <summary>
        /// 时间（格式：yyyy-MM-dd HH:mm:ss）
        /// </summary>
        [JsonProperty("cz_date")]
        [JsonPropertyName("cz_date")]
        public string CZDate { get; set; }
        /// <summary>
        /// 参数值（按数据字典要求进行参数数据上传，注意区分大小写）
        /// </summary>
        [JsonProperty("json_data")]
        [JsonPropertyName("json_data")]
        public string JsonData { get; set; }

        /// <inheritdoc cref="UploadDataWRequest"/>
        public UploadDataWRequest() { }
    }

    /// <summary>
    /// 设备报警的响应参数
    /// </summary>
    public class UploadDataWResponse : Response
    {
        /// <inheritdoc cref="UploadDataWResponse"/>
        public UploadDataWResponse() { }
    }
}
